﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteIntranet.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    BuscarDepartamento
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <link href="<%: Url.Content("~/Content/jquery-ui.css") %>" rel="stylesheet" type="text/css" />   
    <link href="<%: Url.Content("~/Content/jPages.css") %>" rel="stylesheet" type="text/css" /> 
    <script src="<%: Url.Content("~/Scripts/jPages.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/Validaciones.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/Departamento.js") %>" type="text/javascript"></script>

    <div id="Buscar">

    <h2>Buscar Departamento</h2>
    <br />

    <label>Edificio:</label>
    <select id="BscSctEdificio" onchange="cargarPisosBuscar()" class="text ui-widget-content ui-corner-all"></select>
    <br></br>
                 
    <label>Tipo:</label>
    <select id="BscSctTipo" class="text ui-widget-content ui-corner-all"></select>
    <br></br>

    <label>Piso:</label>
    <select id="BscSctPiso" class="text ui-widget-content ui-corner-all"></select>
    <br></br>

    <label>Número:</label>
    <input type="text" id="BscTbxNumero" class="text ui-widget-content ui-corner-all" maxlength="18"/>
    <br></br>

    <label>N° Habitaciones:</label>
    <input type="text" id="BscTbxHabitacion" class="text ui-widget-content ui-corner-all" maxlength="50"/>
    <br></br>

    <label for="Banios">N° Baños:</label>
    <input type="text" id="BscTbxBanio" class="text ui-widget-content ui-corner-all" maxlength="50"/>
    <br></br>

    <input type="submit" id = "BscBtnBuscar" value="Buscar" class="submit-button" />
    <input type="submit" id = "BscBtnCancelar" value="Cancelar" class="submit-button" />
    <input type="submit" onclick="refrescar()" id = "BscBtnLimpiar" value="Limpiar" class="submit-button" /><br></br>
    </div>             

    <div class="box-3">
    <div id = "tablaDinamica">
          
    </div>

   <center>
    <div class="holder" id="holder"></div>
    </center>

    <div id="Modificar">
    <input id="BscBtnModificar" type="submit" value="Modificar"/>
    </div>

    <div id="Eliminar">
    <input id="BscBtnEliminar" type="submit" value="Eliminar"/>
    </div>

    
    <div id="Registrar"></div>
    </div>
    <div id="dialog-form" title="Modificar Departamento">
        
        <p class = "validateTips">Modifique los campos que crea necesarios</p>
        
        <fieldset>
        
        <label>Edificio: (*)</label>
        <select id="ModSctEdificio" onchange="cargarPisosDepartamento()" class="text ui-widget-content ui-corner-all"></select>
        <br></br>
                 
        <label>Tipo: (*)</label>
        <select id="ModSctTipo" class="text ui-widget-content ui-corner-all"></select>
        <br></br>

        <label>Piso: (*)</label>
        <select id="ModSctPiso" class="text ui-widget-content ui-corner-all"></select>
        <br></br>

        <label>Número: (*)</label>
        <input type="text" id="ModTbxNumero" class="text ui-widget-content ui-corner-all" maxlength="18"/>
        <label id="ModLblErrorNumero" class="erroresClase" style="color: Red"></label>
        <br></br>

        <label>Área: (*)</label>
        <input type="text" id="ModTbxArea" class="text ui-widget-content ui-corner-all" maxlength="18"/>
        <label id="ModLblErrorArea" class="erroresClase" style="color: Red"></label>
        <br></br>

        <label>N° Habitaciones: (*)</label>
        <input type="text" id="ModTbxHabitacion" class="text ui-widget-content ui-corner-all" maxlength="50"/>
        <label id="ModLblErrorHabitacion" class="erroresClase" style="color: Red"></label>
        <br></br>

        <label>N° Baños: (*)</label>
        <input type="text" id="ModTbxBanio" class="text ui-widget-content ui-corner-all" maxlength="50"/>
        <label id="ModLblErrorBanio" class="erroresClase" style="color: Red"></label>
        <br></br>

        <input type="text" style="display:none" id="ModTbxIdDepartamento" class="text ui-widget-content ui-corner-all" />

        </fieldset>    

    </div>
</asp:Content>
